PCAI 52 - 59 - 16.3 - Random N.PDF

نویسنده

  • R. R. Coveyou
چکیده

Introduction Have you played a video game lately? Purchased something on the web? Trained a Neural Network? Used a Genetic Algorithm for optimization? Run software from Microsoft? Applied textures to a photograph? Played the stock market? If the answer is “yes” to any of these questions, Random Number Generator (RNG) have affected your life. Can you trust your Random Number Generator? Can you test its performance? Does its performance really matter? In addition to some RNG related horror stories, this article presents guidelines for performing basic random number evaluations. It also provides numerous useful links and resources. My interest in random numbers was re-kindled recently while determining whether a particular neural network prediction was better than chance or any of several other prediction algorithms. I was using a Monte-Carlo simulation in Microsoft Visual Basic (tied into Microsoft Excel). To ensure that the code was working correctly, I selected several outcomes for which I could compute the probability of occurrences and associated variance. With 1,000,000 trials, I expected three hits, yet I did not receive one. Even after repeating the experiment several more times, I never obtained the expected outcome, which was highly improbable. Out of frustration, I modified the output of the Visual Basic random number generator by shuffling the numbers using a Bays-Durham Shuffle (a method for shuffling the order of the output of a random number generator as shown in figure 1). This reduced the correlation between successively generated numbers that interacted with my code, and I started approaching the expected number of hits (0-5 hits per run of 1,000,000,000 trials). Later testing verified that the Visual Basic RNG fails several common tests for random numbers. However, as discussed later, when the Visual Basic RNG is used in conjunction with a BaysDurham shuffle, it passes more of the tests. This experience led me to start collecting RNGs, and methods for testing them. I am currently developing a software package that provides access to over 250 commonly used RNGs, and 13,000 lesser-known RNGs and variants. This software will be available shortly at www.extremeet.com.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Table DP-1. Profile of General Demographic Characteristics: 2000 Geographic area: Kismet city, Kansas

Under 5 years . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 10.7 5 to 9 years . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 12.2 10 to 14 years . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 8.5 15 to 19 years . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 9.3 20 to 24 years . . . . . . . . . . . . . . . . . . . . . ....

متن کامل

Table DP-1. Profile of General Demographic Characteristics: 2000 Geographic area: Valley Center city, Kansas

Under 5 years . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335 6.9 5 to 9 years . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387 7.9 10 to 14 years . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450 9.2 15 to 19 years . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 408 8.4 20 to 24 years . . . . . . . . . . . . . . . . . . . . ....

متن کامل

A systematic study of topographical memory and posterior cerebral artery infarctions.

OBJECTIVE To estimate the prevalence of topographical memory impairment following posterior cerebral artery infarctions (PCAI) and define its anatomical correlations. METHODS We recruited 15 patients (mean duration of 4 months postinfarct). We administered 2 sets of experimental tests to assess topographical memory: one set included 5 computerized tasks (CompT) and the other set consisted of ...

متن کامل

Differences in Mating between a Boar, Traditional Artificial Insemination, and Post Cervical Insemination

As populations around the globe are growing the demand for pork protein in the human diet is increasing. Technologies utilized in 1990s such as artificial insemination have improved our capabilities to produce leaner carcasses. Utilizing superior genetics and breeding techniques as tools to improve growth rates, feed efficiency, and carcass quality is imperative for the swine industry to succes...

متن کامل

Exploring the predictive ability of two new complementary instruments for assessing effective therapeutic communication skills of dental and dental hygiene students.

Research on the development of effective therapeutic communication skills for oral health providers is slowly evolving. One of the initial steps in this research is to identify and address gaps in the work of previous researchers. Ultimately, the educational goal of competence in communications skills development is to provide improved patient care including improved patient satisfaction. This ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2002